<%-- 
    Document   : paziente
    Created on : 7-dic-2011, 13.08.07
    Author     : sestari
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>

<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>

<%@taglib prefix="a4j" uri="http://richfaces.org/a4j"%>
<%@taglib prefix="rich" uri="http://richfaces.org/rich"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<f:view>
    <html>
        <head>

            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
            <link rel="stylesheet" type="text/css" href="../style_generale.css" />
            <f:loadBundle basename="message.message" var="msg"/>        
            <title> <h:outputText value="#{msg.visiteeffettuate}"/> </title>

        </head>
        <body>



            <a4j:form>
                <rich:dataTable value="#{paziente.visite}" var="vis"     
                                rows="8" footerClass="ordersHeader"
                                style="overflow:auto; width:100%; height:50px"
                                styleClass="orders" headerClass="ordersHeader" columnClasses="evenColumn,oddColumn">

                    <rich:column sortBy="#{vis.data_scadenza}">
                        <f:facet name="header">  
                            <h:outputText value="#{msg.data_scadenza}"/> 
                        </f:facet>
                        <h:outputText value="#{vis.data_scadenza}" style="#{vis.ef};#{vis.weekdiff};"> 
                            <f:convertDateTime type="date" dateStyle="short"/>
                        </h:outputText> 
                    </rich:column>

                    <rich:column sortBy="#{vis.tipo_visita}">
                        <f:facet name="header">  
                            <h:outputText value="#{msg.tipo_visita}"/> 
                        </f:facet>
                        <h:outputText value="#{vis.tipo_visita}" style="#{vis.ef};#{vis.weekdiff};"/> 
                    </rich:column>

                    <rich:column sortBy="#{vis.tipo_scadenza}">
                        <f:facet name="header">  
                            <h:outputText value="#{msg.tiposcadenza}"/> 
                        </f:facet>
                        <h:outputText value="#{vis.tipo_scadenza}" style="#{vis.ef};#{vis.weekdiff};"/> 
                    </rich:column>

                    <rich:column sortBy="#{vis.descrizione}">
                        <f:facet name="header">  
                            <h:outputText value="#{msg.descrizione}"/> 
                        </f:facet>
                        <h:outputText value="#{vis.descrizione}" style="#{vis.ef};#{vis.weekdiff};"/> 
                    </rich:column>

                    <f:facet name="footer">
                        <rich:datascroller id="vis" selectedStyleClass="myList"></rich:datascroller>
                    </f:facet>

                </rich:dataTable> 



            </a4j:form>


            <h:form>
                <h:commandButton value="#{msg.back}" action="back" styleClass="button"/>                
            </h:form>
            <br>
            <br>
            <br>
            <%@ include file="/lingua/lingua.jsp" %>
        </body>
        <html>
        </f:view>

